package com.threegroup.web.dao;

import com.threegroup.web.pojo.AddressBookEntity;

import java.util.List;
import java.util.Map;

public interface AddressBookEntityMapper {
    int deleteByPrimaryKey(Long id);

    int insert(AddressBookEntity record);

    int insertSelective(AddressBookEntity record);

    AddressBookEntity selectByPrimaryKey(Long id);



    int updateByPrimaryKeySelective(AddressBookEntity record);

    int updateByPrimaryKey(AddressBookEntity record);

    List<AddressBookEntity> queryAddr(Long userId);

    AddressBookEntity defaultAdrr(Long userId);

    int setDefaultAdrrFirst(Long userId);
    int setDefaultAdrrSecond(AddressBookEntity addressBookDTO);
}